package com.IntelligentCommunity.deploy.run;

import com.IntelligentCommunity.deploy.service.IDeployTaskFaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author 美国五星上将麦克阿瑟
 */
@Component
public class UpdateJob {

    @Autowired
    private IDeployTaskFaceService deployTaskFaceService;

    // 每分钟执行一次
    @Scheduled(cron = "*/1 * * * * ?")
    public void startTimeUpButNotStartTask() {
        deployTaskFaceService.startTimeUpButNotStartTask();
    }

}
